package com.tt.fashionWebSite.domain;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by 10520_000 on 10/30/14.
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "kich_thuoc")
@NamedQueries({
        @NamedQuery(name = "getAllSize", query = "SELECT c FROM KichThuoc c"),
})
public class KichThuoc implements Serializable {

    public static final String GET_ALL_SIZE = "getAllSize";

    @Id
    @Column(name = "MA_SIZE")
    private String maSize;

    @Column(name = "TEN_SIZE")
    private String tenSize;

   @ManyToOne
   @JoinColumn(name = "MA_LOAI")
   private LoaiDanhMuc loaiDanhMuc;

    public String getMaSize() {
        return maSize;
    }

    public void setMaSize(String maSize) {
        this.maSize = maSize;
    }

   public String getTenSize() {
      return tenSize;
   }

   public void setTenSize(String tenSize) {
      this.tenSize = tenSize;
   }

   public LoaiDanhMuc getLoaiDanhMuc() {
      return loaiDanhMuc;
   }

   public void setLoaiDanhMuc(LoaiDanhMuc loaiDanhMuc) {
      this.loaiDanhMuc = loaiDanhMuc;
   }
}
